Setting Up Inery Contract Development Environment
The Inery Contract Development Toolkit (CDT) allows you to build and deploy value contracts for the Inery DLS. Follow these steps to install and set up Inery CDT on your Linux (x86_64) system.
This guide provides installation instructions for Debian-based systems (like Ubuntu).
If you prefer a quick installation, you can use the following script to install Inery CDT:
sudo apt install libncurses5 && \
git clone https://github.com/inery-blockchain/inery.cdt.git && \
echo "export PATH=\"\$PATH:$(pwd)/inery.cdt/bin\"" >> ~/.bashrc && \
source ~/.bashrc && \
inery-cpp --version
inery-cpp version 1.7.0
Step 1: Install Required Dependencies
Before installing Inery CDT, you need to make sure all required dependencies are installed.
sudo apt install libncurses5
Step 2: Clone the Inery CDT Repository
To get the latest version of Inery CDT, clone the repository from GitHub:
git clone https://github.com/inery-blockchain/inery.cdt.git
To run Inery CDT binaries from any directory, you need to add the bin directory to your system’s PATH.
echo "export PATH=\"\$PATH:$(pwd)/inery.cdt/bin\"" >> ~/.bashrc
To apply the changes immediately, run:
source ~/.bashrc
Step 3: Verify Installation
To confirm that Inery CDT has been installed successfully, check the version of inery-cpp.
inery-cpp --version
This command should return the current version of Inery CDT, indicating that the setup was successful.